import json

class Oper_Json():

    def __init__(self):
        self.data = self.read_data()

    def read_data(self):
        with open('../data/jsondata.json',encoding='utf-8') as fp:
            data = json.load(fp)
            return data

    def get_data(self,id):
        return self.data[str(int(id))]



if __name__=='__main__':
    opjson = Oper_Json()
    print(opjson.get_data('10001'))